<template>
  <div class="screen-container">
    <div class="left-shadow"></div>
    <div class="right-shadow"></div>
    <div class="header">
      <screen-header></screen-header>
    </div>
    <div class="map-gis">
      <map-gis ref="mapRef"></map-gis>
    </div>
    <div class="left-box">
      <div class="left-item">
        <item-box title="基本情况">
          <template #content> 基本情况 </template>
        </item-box>
      </div>
      <div class="left-item">
        <item-box title="设备运行">
          <template #content> 设备运行 </template>
        </item-box>
      </div>
    </div>
    <div class="right-box">
      <div class="right-item">
        <item-box title="运行监管" position="right">
          <template #content> 运行监管 </template>
        </item-box>
      </div>
      <div class="right-item">
        <item-box title="能耗管理" position="right">
          <template #content> 能耗管理 </template>
        </item-box>
      </div>
    </div>
  </div>
</template>

<script setup>
import { ref } from 'vue'
import ItemBox from './components/ItemBox/index'
import MapGis from './components/MapGis/index'
</script>

<style lang="scss" scoped>
.screen-container {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  .header {
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 22;
  }
  .left-box {
    width: 485px;
    height: calc(100% - 95px);
    position: absolute;
    left: 0;
    top: 70px;
    z-index: 2;
    .left-item {
      width: 100%;
      height: 45%;
      margin-bottom: 30px;
    }
  }
  .right-box {
    width: 485px;
    height: calc(100% - 95px);
    position: absolute;
    right: 0;
    top: 70px;
    z-index: 2;
    .right-item {
      width: 100%;
      height: 45%;
      margin-bottom: 30px;
    }
  }
}
</style>
